6e7e84f
@@ -183,6 +183,11 @@
public class ValidateMojo extends AbstractExecMojo {
         // enable caching
         catalog.enableCache();
 
+        String detectedVersion = findCamelVersion(project);
+        if (detectedVersion != null) {
+            getLog().info("Detected Camel version used in project: " + detectedVersion);
+        }
+
         if (downloadVersion) {
             String catalogVersion = catalog.getCatalogVersion();
             String version = findCamelVersion(project);
@@ -196,16 +201,10 @@
public class ValidateMojo extends AbstractExecMojo {
             }
         }
 
-        // if using the same version as the camel-maven-plugin we must still load it
-        if (catalog.getLoadedVersion() == null) {
-            catalog.loadVersion(catalog.getCatalogVersion());
-        }
-
         if (catalog.getLoadedVersion() != null) {
-            getLog().info("Using Camel version: " + catalog.getLoadedVersion());
+            getLog().info("Validating using downloaded Camel version: " + catalog.getLoadedVersion());
         } else {
-            // force load version from the camel-maven-plugin
-            getLog().info("Using Camel version: " + catalog.getCatalogVersion());
+            getLog().info("Validating using Camel version: " + catalog.getCatalogVersion());
         }
 
         List<CamelEndpointDetails> endpoints = new ArrayList<>();
